package com.test.SocketDemo;

import java.io.Serializable;
import java.util.List;

/**
 * ${DESCRIPTION}
 *
 * @author muxiaoyu
 * @create 2017/06/09 9:28
 **/
public class ModObject implements Serializable {
    private String name;
    private Integer id;
    private List<String> hobby;
    //不需要序列化
    private transient String password;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public List<String> getHobby() {
        return hobby;
    }

    public void setHobby(List<String> hobby) {
        this.hobby = hobby;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "ModObject{" +
                "name='" + name + '\'' +
                ", id=" + id +
                ", hobby=" + hobby +
                ", password='" + password + '\'' +
                '}';
    }

    public ModObject(String name, Integer id, List<String> hobby, String password) {
        this.name = name;
        this.id = id;
        this.hobby = hobby;
        this.password = password;
    }

    public ModObject() {
    }
}
